namespace EzDeploy.Core
{
    public class  Result
    {
        private readonly ResultType _resultType;
        private readonly object _value;
        private readonly string _message;

        public ResultType ResultType
        {
            get { return _resultType; }
        }

        public object Value
        {
            get { return _value; }
        }

        public string Message
        {
            get { return _message; }
        }

        public Result(ResultType resultType, string message) : this(resultType, null, message)
        {
            
        }
        public Result(ResultType resultType, object value, string message)
        {
            _resultType = resultType;
            _value = value;
            _message = message;
        }
    }
}